package com.johome.repository.network

import android.content.Context
import okhttp3.OkHttpClient

/**
 * @Author: shalei
 * @Date: 2019-10-31 14:24
 * @Desc:
 **/
interface HttpEngine {

//    fun <T> changeBaseUrl(baseUrl: String, service: Class<out T>): T

//    fun getRetrofit(): Retrofit

    /**
     * @param service 服务接口
     */
    fun <T> create(service: Class<out T>, context: Context, baseUrl: String): T

    fun getOkHttpClient(): OkHttpClient.Builder
}